import requests

# paras = {
#     'username': 'byhy',
#     'password': '88888888'
# }
#
# sion = requests.post('http://127.0.0.1/api/mgr/signin', data=paras)
# print(sion.text)

paras = {
    'action': 'list_customer',
    'pagesize': '100',
    'pagenum': '1'
 }

response = requests.get('http://127.0.0.1/api/mgr/customers', params=paras)
print(response.text)
